# -*- coding: utf-8 -*-

# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html

import scrapy

class XiaohongshuItem(scrapy.Item):
    # define the fields for your item here like:
    _id  = scrapy.Field()
    author = scrapy.Field()
    author_id = scrapy.Field()
    title = scrapy.Field()
    product = scrapy.Field()
    description = scrapy.Field()
    collect_score = scrapy.Field()
    like_score = scrapy.Field()
    comments_score = scrapy.Field()
    picture_url = scrapy.Field()
    category = scrapy.Field()
    recommendation  = scrapy.Field() #/goods/
    related_note  = scrapy.Field() #/discovery/item/
    album = scrapy.Field() #/selected_board/
    last_updated = scrapy.Field(serializer=str)

class XiaohongshuSearch(scrapy.Item):
    # define the fields for your item here like:
    keyword  = scrapy.Field()
    data = scrapy.Field()
    last_updated = scrapy.Field(serializer=str)
    
class XiaohongshuGood(scrapy.Item):
    _id  = scrapy.Field()
    title = scrapy.Field()
    
class XiaohongshuAlbum(scrapy.Item):
    _id  = scrapy.Field()
    title = scrapy.Field()    
    items = scrapy.Field()    